package com.dky.satell.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dky.satell.entity.RequestMapping;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fangyuan
 * @since 2021-06-01
 */
@Mapper
public interface RequestMappingMapper extends BaseMapper<RequestMapping> {
    /**
     * 分页查询
     * @param name
     * @return
     */
    Page<RequestMapping> search(@Param("name") String name);

    /**
     * 根据名称判重
     * @param entryAddress
     * @param id
     * @return
     */
    Integer countByEntryAddress(@Param("entryAddress") String entryAddress, @Param("id") Integer id);
}
